﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.Model;
using Hangjing.SQLServerDAL;
using Hangjing.Common;


/// <summary>
/// 修改骑士工作状态
/// </summary>
public partial class App_Android_Deliver_deliverworkstate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string state = WebUtility.InputText(Request["state"]);
        int did = HjNetHelper.GetQueryInt("did", 0);

        string sql = "UPDATE dbo.Deliver SET workstate = "+state+" WHERE DataId = "+did;
        WebUtility.excutesql(sql);


        Response.Write("{\"state\":\"1\",\"msg\":\"操作成功\"}");



        Response.End();
    }
}
